package org.zhu.common.bean;

/**
 * Created by zhu yingzhi on 2017/9/26.
 * @author yingzhi zhu
 * 购物车实体类
 */
public class Cart {
    /**
     * 自增
     */
    private Long id;
    /**
     * goods的id
     */
    private Long goods_id;//
    /**
     * 用户的唯一标识符
     */
    private Long user_id;//
    /**
     * 商品名字
     */
    private String goods_name;//
    /**
     * 商品的单价 带上了goods_attr的价格
     */
    private double goods_price;//
    /**
     * 商品的数量
     */
    private int goods_number;//
    /**
     * 商品参数名 用，分隔
     */
    private String goods_attr;//
    /**
     * 商品参数名 用，分隔
     */
    private String add_time;//
    /**
     * 是否可以购买
     */
    private boolean can_buy;//
    /**
     * 商品的参数Id 用，分隔
     */
    private String goods_attrs_id;//
    /**
     * 商品的参数价格 用，分隔
     */
    private String goods_attrs_price;//


    public String getAdd_time() {
        return add_time;
    }

    public void setAdd_time(String add_time) {
        this.add_time = add_time;
    }

    public String getGoods_attrs_price() {
        return goods_attrs_price;
    }

    public void setGoods_attrs_price(String goods_attrs_price) {
        this.goods_attrs_price = goods_attrs_price;
    }

    public String getGoods_attrs_id() {
        return goods_attrs_id;
    }

    public void setGoods_attrs_id(String goods_attrs_id) {
        this.goods_attrs_id = goods_attrs_id;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getGoods_id() {
        return goods_id;
    }

    public void setGoods_id(Long goods_id) {
        this.goods_id = goods_id;
    }

    public Long getUser_id() {
        return user_id;
    }

    public void setUser_id(Long user_id) {
        this.user_id = user_id;
    }

    public String getGoods_name() {
        return goods_name;
    }

    public void setGoods_name(String goods_name) {
        this.goods_name = goods_name;
    }

    public double getGoods_price() {
        return goods_price;
    }

    public void setGoods_price(double goods_price) {
        this.goods_price = goods_price;
    }

    public int getGoods_number() {
        return goods_number;
    }

    public void setGoods_number(int goods_number) {
        this.goods_number = goods_number;
    }

    public String getGoods_attr() {
        return goods_attr;
    }

    public void setGoods_attr(String goods_attr) {
        this.goods_attr = goods_attr;
    }

    public boolean isCan_buy() {
        return can_buy;
    }

    public void setCan_buy(boolean can_buy) {
        this.can_buy = can_buy;
    }
}
